asm-offsets: encode magic asm-offset runes as strings.
authorTim Deegan <tim@xen.org>
Thu, 3 Apr 2014 16:07:47 +0000 (18:07 +0200)
committerTim Deegan <tim@xen.org>
Thu, 24 Apr 2014 10:41:04 +0000 (11:41 +0100)
commit9793226cf8d78780602a850de7938df371af2876
tree022b31a6baae30e9427c993d5e4de76928338bf8
parent2fff2e22813d5c04effa335f9ab2d5254db065f6
asm-offsets: encode magic asm-offset runes as strings.

Newer versions of clang attempt to parse inline assembler even when
not asked to assemble it.  Wrap our not-for-assembly runes as strings
of the form ``.ascii "==>MAGIC RUNES<=="'' so clang doesn't choke on
them.

While we're at it, assemble more of the final output line in the C
file, to make the sed expression shorter.

Reported-by: Julien Grall <julien.grall@linaro.org>
Suggested-by: Jan Beulich <JBeulich@suse.com>
Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/Makefile
xen/arch/arm/arm32/asm-offsets.c
xen/arch/arm/arm64/asm-offsets.c
xen/arch/x86/x86_64/asm-offsets.c